package com.invite.me.ui.registeractivity;

import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.invite.me.R;
import com.invite.me.base.BaseActivity;
import com.invite.me.ui.xieyi.ProtocolH5Activity;

public class ProtocolActivity extends BaseActivity implements View.OnClickListener {
    @Override
    protected void initView() {
        ImageView account_balance_fanhui = findViewById(R.id.account_balance_fanhui);
        RelativeLayout shiyongxieyi = findViewById(R.id.shiyongxieyi);
        RelativeLayout yinsizhengce = findViewById(R.id.yinsizhengce);
        RelativeLayout yonghuxieyi = findViewById(R.id.yonghuxieyi);
        account_balance_fanhui.setOnClickListener(this);
        shiyongxieyi.setOnClickListener(this);
        yinsizhengce.setOnClickListener(this);
        yonghuxieyi.setOnClickListener(this);


    }

    @Override
    protected int getActivityLayoutId() {
        return R.layout.activity_protocol;
    }

    @Override
    protected void loadData() {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.account_balance_fanhui:
                finish();
                break;
            case R.id.shiyongxieyi:
                Intent one =new Intent(ProtocolActivity.this,ProtocolH5Activity.class);
                one.putExtra("type","one");
                one.putExtra("uil","http://www.ninyaowo.com/#/statement/agrement");

                startActivity(one);

                break;
            case R.id.yinsizhengce:
                Intent two =new Intent(ProtocolActivity.this,ProtocolH5Activity.class);
                two.putExtra("type","two");
                two.putExtra("uil","http://www.ninyaowo.com/#/statement/privacy");

                startActivity(two);

                break;
            case R.id.yonghuxieyi:
                Intent three =new Intent(ProtocolActivity.this,ProtocolH5Activity.class);
                three.putExtra("type","three");
                three.putExtra("uil","http://www.ninyaowo.com/#/statement/service");

                startActivity(three);

                break;

        }

    }
}
